<div class="article_list">
	<?php foreach ($articles as $article): ?>
		<div class="article_listview">
			<div class="topic_list">
				
			</div>
			<div class="lv_title">
				<?php echo $this->Html->link(
	    				$article['Article']['title'],
						'/articles/view/'.$article['Article']['id'],
						array('escape' => false,'title' => $article['Article']['title'])
					);
				?>
			</div>
			<div class="lv_summary">
				<?php 
					if($article['Article']['summary'] != null){
						echo $article['Article']['summary'].'<br />';
					}
				?>
			</div>
			<div class="lv_note">
				<span class="note">
					<?php if($article['Article']['since'] != null){ ?>
						$.timeFormat(<?php echo $article['Article']['since']; ?>), 
					<?php } ?>
					bởi 
					<?php echo $this->Html->link(
		    				$article['User']['name'],
							'/users/view/'.$article['Article']['userId'],
							array('escape' => false,'title' => $article['User']['name'],'class'=>'small-user')
						);
					?>, 
					<span class="count_vote">+<?php echo $article['Article']['vote']; ?></span>
				</span>
			</div>
    	</div>
	<?php endforeach; ?>
    <?php unset($article); ?>
</div>